﻿@page "/cms/admin/entries/create"
@using Dignite.Cms.Admin.Entries;
@using Dignite.Cms.Admin.Sections;
@using Dignite.Cms.Permissions
@using Dignite.Cms.Localization
@using Microsoft.AspNetCore.Authorization
@using Volo.Abp.AspNetCore.Components.Web.Theming.Layout
@inherits AbpComponentBase
@attribute [Authorize(CmsAdminPermissions.Entry.Create)]
@inject IEntryAdminAppService EntryAppService
@inject IEntryTypeAdminAppService EntryTypeAppService
@inject ISectionAdminAppService SectionAppService
@inject NavigationManager Navigation

    
<PageTitle>@L["New"]</PageTitle>

@* ************************* PAGE HEADER ************************* *@
<PageHeader Title="@L["New"]"
            Toolbar="@Toolbar">
</PageHeader>
  
@* ************************* CREATE  ************************* *@        
<Blazorise.Form>
    <Blazorise.Validations @ref="@CreateValidationsRef" Model="@NewEntity" ValidateOnLoad="false">
        @if (NewEntity != null && Section!=null)
        {
            <CreateOrUpdateEntryComponent Entry="@NewEntity" Section="@Section"></CreateOrUpdateEntryComponent>
        }
    </Blazorise.Validations>
</Blazorise.Form>
